package invest.mapper;


import invest.model.StockHistoryModel;
import invest.pojo.datapojo.StockHistory;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface StockHistoryModelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StockHistory record);

    int insertSelective(StockHistory record);

    StockHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockHistory record);

    int updateByPrimaryKey(StockHistory record);


    List<StockHistoryModel> selecOverRise(String date, Double riseRange, Double closingPrice);

    List<StockHistoryModel> getDate(String date);

    Long countZhangTing(Date startDate, Date endDate, String code, Double riseRange);

    Date getMinDateOfCode(String code);

    StockHistoryModel getByCodeDate(String date, String code);

    StockHistoryModel getNextDayCode(String code, Long id);

    List<Date> getDistinctDate();

}